package cn.com.aiton.common.utils;

public class NumberUtil {
    public static int init6Number(){
        return (int)((Math.random()*9+1)*100000);
    }
    public static int init6NumberPlus(int count){
        return count+1;
    }

    public static String sixNumberPlus(int count){
        String result="";
        count++;
        if (count<10){
            result = "00000"+ count;
        }else if (count<100 && count >=10){
            result = "0000"+ count;
        }else if (count<1000 && count >=100){
            result = "000"+ count;
        }else if (count<10000 && count >=1000){
            result = "00"+ count;
        }else if (count<100000 && count >=10000){
            result = "0"+ count;
        }else if (count<1000000 && count >=100000){
            result = ""+ count;
        }else if (count>=1000000){
            return "000001";
        }
        return result;
    }
}
